import yagmail
import BeautifulReport
import unittest


class Tloos():
    def Mais(self, senkes):
        sit = yagmail.SMTP(user="3392177122@qq.com", password="bvteuinicnxrdacf", host="smtp.qq.com")
        sit.send(to="3392177122@qq.com", subject="测试", contents="测试", attachments=senkes)

    def Beau(self):
        situe = unittest.defaultTestLoader.discover(start_dir="./", pattern='Case.py')
        BeautifulReport.BeautifulReport(situe).report(description="报告.html", filename="测试报告", report_dir="./")
